// Copyright (c) Appeon. All rights reserved.
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. 
// You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.

using System;
using System.Collections.Generic;

namespace SnapObjects.Expressions
{
    public abstract class ParserOptions<T>
    {
        public ParserOptions(
            string expression,
            string sourceKind,
            object dataSource,
            MetadataCollection<T> collection,
            object customData = null)
        {
            this.DataSource = dataSource;
            this.CustomData = customData;
            this.Expression = expression;
            this.SourceKind = sourceKind;
            this.Metadatas = collection;
        }

        public string Expression { get; }
        public string SourceKind { get; }
        public object DataSource { get; }
        public object CustomData { get; }
        public MetadataCollection<T> Metadatas { get; }
        internal IDictionary<object, Type> StatementTypes { get; } = new Dictionary<object, Type>();
    }
}
